import { request } from '../request';

/** 管理员查看财务列表 */
export const selectCaiwuList = async (params: any) => {
  const data = await request.post<any>('/admin/Caiwu/selectCaiwuList', params);
  return data;
};

/** 管理员查看查看推广商每集的当月的收入 */
export const selectCaiwuMonthList = async (params: any) => {
  const data = await request.post<any>('/admin/Caiwu/selectCaiwuMonthList', params);
  return data;
};

/** 管理员-财务数据-查看总收益 */
export const selectCaiwuData = async () => {
  const data = await request.post<any>('/admin/Caiwu/selectCaiwuData');
  return data;
};

/** 管理员-提现记录 */
export const applyWithdrawalList = async (params: any) => {
  const data = await request.post<any>('/admin/Withdrawal/applyWithdrawalList',params);
  return data;
};

/** 管理员-审核提现 */
export const examineWithdrawal = async (params: any) => {
  const data = await request.post<any>('/admin/Withdrawal/examineWithdrawal',params);
  return data;
};

/** 推广商-申请提现 */
export const applyWithdrawal = async (params: any) => {
  const data = await request.post<any>('/admin/Caiwu/applyWithdrawal',params);
  return data;
};